﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020006B5 RID: 1717
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class GetEnhanceCommonRogueBuffInfoScRsp : IMessage<GetEnhanceCommonRogueBuffInfoScRsp>, IMessage, IEquatable<GetEnhanceCommonRogueBuffInfoScRsp>, IDeepCloneable<GetEnhanceCommonRogueBuffInfoScRsp>, IBufferMessage
	{
		// Token: 0x1700161D RID: 5661
		// (get) Token: 0x06004D6D RID: 19821 RVA: 0x000D3B1D File Offset: 0x000D1D1D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<GetEnhanceCommonRogueBuffInfoScRsp> Parser
		{
			get
			{
				return GetEnhanceCommonRogueBuffInfoScRsp._parser;
			}
		}

		// Token: 0x1700161E RID: 5662
		// (get) Token: 0x06004D6E RID: 19822 RVA: 0x000D3B24 File Offset: 0x000D1D24
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return GetEnhanceCommonRogueBuffInfoScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x1700161F RID: 5663
		// (get) Token: 0x06004D6F RID: 19823 RVA: 0x000D3B36 File Offset: 0x000D1D36
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return GetEnhanceCommonRogueBuffInfoScRsp.Descriptor;
			}
		}

		// Token: 0x06004D70 RID: 19824 RVA: 0x000D3B3D File Offset: 0x000D1D3D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetEnhanceCommonRogueBuffInfoScRsp()
		{
		}

		// Token: 0x06004D71 RID: 19825 RVA: 0x000D3B50 File Offset: 0x000D1D50
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetEnhanceCommonRogueBuffInfoScRsp(GetEnhanceCommonRogueBuffInfoScRsp other) : this()
		{
			this.enhancedBuffIdList_ = other.enhancedBuffIdList_.Clone();
			this.retcode_ = other.retcode_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06004D72 RID: 19826 RVA: 0x000D3B86 File Offset: 0x000D1D86
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetEnhanceCommonRogueBuffInfoScRsp Clone()
		{
			return new GetEnhanceCommonRogueBuffInfoScRsp(this);
		}

		// Token: 0x17001620 RID: 5664
		// (get) Token: 0x06004D73 RID: 19827 RVA: 0x000D3B8E File Offset: 0x000D1D8E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<uint> EnhancedBuffIdList
		{
			get
			{
				return this.enhancedBuffIdList_;
			}
		}

		// Token: 0x17001621 RID: 5665
		// (get) Token: 0x06004D74 RID: 19828 RVA: 0x000D3B96 File Offset: 0x000D1D96
		// (set) Token: 0x06004D75 RID: 19829 RVA: 0x000D3B9E File Offset: 0x000D1D9E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x06004D76 RID: 19830 RVA: 0x000D3BA7 File Offset: 0x000D1DA7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as GetEnhanceCommonRogueBuffInfoScRsp);
		}

		// Token: 0x06004D77 RID: 19831 RVA: 0x000D3BB8 File Offset: 0x000D1DB8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(GetEnhanceCommonRogueBuffInfoScRsp other)
		{
			return other != null && (other == this || (this.enhancedBuffIdList_.Equals(other.enhancedBuffIdList_) && this.Retcode == other.Retcode && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06004D78 RID: 19832 RVA: 0x000D3C08 File Offset: 0x000D1E08
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			num ^= this.enhancedBuffIdList_.GetHashCode();
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06004D79 RID: 19833 RVA: 0x000D3C55 File Offset: 0x000D1E55
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06004D7A RID: 19834 RVA: 0x000D3C5D File Offset: 0x000D1E5D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06004D7B RID: 19835 RVA: 0x000D3C68 File Offset: 0x000D1E68
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			this.enhancedBuffIdList_.WriteTo(ref output, GetEnhanceCommonRogueBuffInfoScRsp._repeated_enhancedBuffIdList_codec);
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(40);
				output.WriteUInt32(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06004D7C RID: 19836 RVA: 0x000D3CB8 File Offset: 0x000D1EB8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			num += this.enhancedBuffIdList_.CalculateSize(GetEnhanceCommonRogueBuffInfoScRsp._repeated_enhancedBuffIdList_codec);
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06004D7D RID: 19837 RVA: 0x000D3D0C File Offset: 0x000D1F0C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(GetEnhanceCommonRogueBuffInfoScRsp other)
		{
			if (other == null)
			{
				return;
			}
			this.enhancedBuffIdList_.Add(other.enhancedBuffIdList_);
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06004D7E RID: 19838 RVA: 0x000D3D59 File Offset: 0x000D1F59
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06004D7F RID: 19839 RVA: 0x000D3D64 File Offset: 0x000D1F64
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 32U && num != 34U)
				{
					if (num != 40U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.Retcode = input.ReadUInt32();
					}
				}
				else
				{
					this.enhancedBuffIdList_.AddEntriesFrom(ref input, GetEnhanceCommonRogueBuffInfoScRsp._repeated_enhancedBuffIdList_codec);
				}
			}
		}

		// Token: 0x04001E8B RID: 7819
		private static readonly MessageParser<GetEnhanceCommonRogueBuffInfoScRsp> _parser = new MessageParser<GetEnhanceCommonRogueBuffInfoScRsp>(() => new GetEnhanceCommonRogueBuffInfoScRsp());

		// Token: 0x04001E8C RID: 7820
		private UnknownFieldSet _unknownFields;

		// Token: 0x04001E8D RID: 7821
		public const int EnhancedBuffIdListFieldNumber = 4;

		// Token: 0x04001E8E RID: 7822
		private static readonly FieldCodec<uint> _repeated_enhancedBuffIdList_codec = FieldCodec.ForUInt32(34U);

		// Token: 0x04001E8F RID: 7823
		private readonly RepeatedField<uint> enhancedBuffIdList_ = new RepeatedField<uint>();

		// Token: 0x04001E90 RID: 7824
		public const int RetcodeFieldNumber = 5;

		// Token: 0x04001E91 RID: 7825
		private uint retcode_;
	}
}
